package csu.web.mypetstore.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import csu.web.mypetstore.pojo.Item;
import csu.web.mypetstore.pojo.Vo.GetItemByProductIdVo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
* @author 18632
* @description 针对表【item】的数据库操作Mapper
* @createDate 2025-03-10 16:55:17
* @Entity csu.web.mypetstore.pojo.Item
*/
public interface ItemMapper extends BaseMapper<Item> {
//    @Select("SELECT * FROM item WHERE productid = #{productId}")
//    List<Item> getItemListByProduct(@Param("productId") String productId);

    List<GetItemByProductIdVo> getItemListByProduct(String productId);
    GetItemByProductIdVo getItemById(String itemId);
}




